pkgname=kded
pkgver=5.37.0
pkgrel=1
pkgdesc='Extensible deamon for providing system level services'
arch="all"
url='https://community.kde.org/Frameworks'
license="LGPL"
depends="kinit"
makedepends="extra-cmake-modules kdoctools-dev kinit-dev kcrash-dev kdbusaddons-dev kconfig-dev
			 kcoreaddons-dev kservice-dev"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
subpackages="$pkgname-dev $pkgname-doc"

prepare() {
	mkdir -p $srcdir/build
}

build() {
	cd $srcdir/build
	cmake "$srcdir"/${pkgname}-${pkgver} \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DKDE_INSTALL_LIBDIR=lib \
		-DBUILD_TESTING=OFF
	make
}

package() {
	cd $srcdir/build
	make DESTDIR="${pkgdir}" install
}
sha512sums="2a420cf97f55858ec6cac4a74bdf97f367b32fc07529714b494576f7828261ae52650972b9f8b80e5e12cd854f66e7bc4d2d2cd339d7ce8a71ab29ebd41e76fa  kded-5.37.0.tar.xz"
